package com.example.demofdfs.example.lock;

/**
 * 消费者线程
 * @author chenyq
 * @email 806512500@qq.com
 * @date 2019年1月5日
 */
public class Consumer implements Runnable {

	private Store store;
	
	public Consumer(Store store) {
		super();
		this.store = store;
	}

	@Override
	public void run() {
		while(true)
			System.out.println(Thread.currentThread().getName() + " : " + store.get());
	}

}
